package com.tcm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

/**
 * 应用程序启动类
 * @author Guqier
 * @version 1.0
 * @date 2023/6/26 21:42
 */
@SpringBootApplication
@EnableTransactionManagement // 开启事务
@EnableScheduling // 开启定时任务
@EnableAsync// 开启异步任务
@MapperScan("com.tcm.mapper")//开启Mapper包扫描
@EnableCaching// 开启缓存
@EnableWebSocket// 开启WebSocket
public class TcmApplication {
    public static void main(String[] args) {
        SpringApplication.run(TcmApplication.class, args);
    }
}
